<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/dhj/person/Division_Person.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/dhj/person/Division_Person.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'DivisionId',
                footer: "Foots",
                cnName: '用户表',
                name: 'person/Division_Person',
                url: "/Division_Person/",
                sortName: "DivisionId"
            });
            const editFormFields = ref({"BusinessManager":"","Division":"","StaffAccount":""});
            const editFormOptions = ref([[{"title":"业务经理","field":"BusinessManager","type":"text"},
                               {"title":"销售事业部","field":"Division","type":"text"},
                               {"title":"员工账号","field":"StaffAccount","type":"text"}]]);
            const searchFormFields = ref({"BusinessManager":""});
            const searchFormOptions = ref([[{"title":"业务经理","field":"BusinessManager","type":"like"}]]);
            const columns = ref([{field:'DivisionId',title:'DivisionId',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'BusinessManager',title:'业务经理',type:'string',width:110,align:'left',sort:true},
                       {field:'Division',title:'销售事业部',type:'string',width:110,align:'left'},
                       {field:'StaffAccount',title:'员工账号',type:'string',width:220,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
